<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //函数的返回值return,返回给调用者
        // function 函数名() {
        //     return 需要返回的结果;
        // }
        // 函数名();  // getResult();

        function getResult() {
            return 666;
        }

        console.log(getResult());

        //求任意两个数的和
        function getSum(num1, num2) {
            return num1 + num2;
        }

        console.log(getSum(1, 2));

    </script>
</head>

<body>

</body>

</html>